<html>
<head>


<script>
<!--
var tipuanUrl = "http://gubhugreyot.blogspot.com/";
var edButtons = new Array();
var edLinks = new Array();
var edOpenTags = new Array();

function edButton(j, k, m, g, h, l) {
    this.id = j;
    this.display = k;
    this.tagStart = m;
    this.tagEnd = g;
    this.access = h;
    this.open = l
}
edButtons.push(new edButton("ed_gr", "", "", "", "", ""));
edButtons.push(new edButton("ed_b", "b", "<b>", "</b>", "b"));
edButtons.push(new edButton("ed_strong", "strong", "<strong>", "</strong>", "strong"));
edButtons.push(new edButton("ed_i", "i", "<i>", "</i>", "i"));
edButtons.push(new edButton("ed_em", "em", "<em>", "</em>", "em"));
edButtons.push(new edButton("ed_span", "span", "<span>", "</span>", "span"));
edButtons.push(new edButton("ed_div", "div", "<div>", "</div>", "div"));
edButtons.push(new edButton("ed_gr", "id", ' id=""', ' id=""'));
edButtons.push(new edButton("ed_gr", "class", ' class=""', ' class=""'));
edButtons.push(new edButton("ed_p", "p", "<p>", "</p>\n", "p"));
edButtons.push(new edButton("ed_h1", "h1", "<h1>", "</h1>\n", "1"));
edButtons.push(new edButton("ed_h2", "h2", "<h2>", "</h2>\n", "2"));
edButtons.push(new edButton("ed_h3", "h3", "<h3>", "</h3>\n", "3"));
edButtons.push(new edButton("ed_h4", "h4", "<h4>", "</h4>\n", "4"));
edButtons.push(new edButton("ed_h5", "h5", "<h5>", "</h5>\n", "5"));
edButtons.push(new edButton("ed_h6", "h6", "<h6>", "</h6>\n", "6"));
edButtons.push(new edButton("ed_u", "u", "<u>", "</u>\n", "u"));
edButtons.push(new edButton("ed_ul", "ul", "<ul>\n", "</ul>\n", "u"));
edButtons.push(new edButton("ed_ol", "ol", "<ol>\n", "</ol>\n", "o"));
edButtons.push(new edButton("ed_li", "li", "\t<li>", "</li>\n", "l"));
edButtons.push(new edButton("ed_bQuote", "bQuote", "<blockquote>", "</blockquote>", "q"));
edButtons.push(new edButton("ed_pre", "pre", "<pre>", "</pre>"));
edButtons.push(new edButton("ed_code", "code", "<code>", "</code>", "c"));
edButtons.push(new edButton("ed_table", "table", "<table>\n<tbody>", "</tbody>\n</table>\n"));
edButtons.push(new edButton("ed_tr", "tr", "\t<tr>\n", "\n\t</tr>\n"));
edButtons.push(new edButton("ed_td", "td", "\t\t<td>", "</td>\n"));
edButtons.push(new edButton("ed_dl", "dl", "<dl>\n", "</dl>\n"));
edButtons.push(new edButton("ed_dt", "dt", "\t<dt>", "</dt>\n"));
edButtons.push(new edButton("ed_dd", "dd", "\t<dd>", "</dd>\n"));
edButtons.push(new edButton("ed_form", "form", "<form>\n\n", "</form>\n", "form"));
edButtons.push(new edButton("ed_but", "button", "<button>", "</button>", "but"));
edButtons.push(new edButton("ed_gr", "<br />", "<br />\n", "<br />\n", "br"));
edButtons.push(new edButton("ed_gr", "Clear", '<div style="clear:both;"></div>\n', '<div style="clear:both;"></div>\n', "Clear"));
edButtons.push(new edButton("ed_gr", "style-css", '<style type="text/css">\n\n</style>\n', '<style type="text/css">\n\n</style>\n'));
edButtons.push(new edButton("ed_gr", "link-css", '<link href="" rel="stylesheet" type="text/css" />\n', '<link href=".../style.css" rel="stylesheet" type="text/css" />\n'));
edButtons.push(new edButton("ed_gr", "js-tag", '<script type="text/javascript">\n\n<\/script>\n', '<script type="text/javascript">\n\n<\/script>\n'));
edButtons.push(new edButton("ed_gr", "link-js", '<script src=".../javascript.js" type="text/javascript"><\/script>\n', '<script src=".../javascript.js" type="text/javascript"><\/script>\n'));
edButtons.push(new edButton("ed_gr", "cDATA", "//<![CDATA[\n\n//]]>", "<!--\n\n//-->", "cDATA"));
edButtons.push(new edButton("ed_gr", "img-tag", '<img src=".../image.jpg" width="" height="" border="0" />', '<img src=".../image.jpg" width="" height="" border="0" />'));
edButtons.push(new edButton("ed_link", "link", "", "</a>", "a"));
edButtons.push(new edButton("ed_ext_link", "ext-link", "", "</a>", "e"));
edButtons.push(new edButton("ed_img", "img", "", "", "m", - 1));
var extendedStart = edButtons.length;
edButtons.push(new edButton("ed_ins", "ins", "<ins>", "</ins>"));
edButtons.push(new edButton("ed_del", "del", "<del>", "</del>"));
edButtons.push(new edButton("ed_nobr", "nobr", "<nobr>", "</nobr>"));
edButtons.push(new edButton("ed_gr", "html", '<!DOCTYPE html>\n<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">\n<title>gubhugreyot....</title>\n\n\n</head>\n<body>\n\n\n</body>\n</html>', '<!DOCTYPE html>\n<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">\n<title>gubhugreyot....</title>\n\n\n</head>\n<body>\n\n\n</body>\n</html>', "doctype"));
edButtons.push(new edButton("ed_gr", "css-IE", '<!--[if IE]>\n<style type="text/css">\n CSS here! (All IE)\n</style>\n<![endif]-->\n', '<!--[if IE]>\n/* All CSS  spesific in IE */\n<link href="all-IE.css" rel="stylesheet" type="text/css" />\n<![endif]-->\n', "CSS-IE"));
edButtons.push(new edButton("ed_gr", "IE 7", '<!--[if IE 7]>\n<style type="text/css">\n CSS IE 7 here! (Spesific in IE 7)\n Replace "7" with others spesific IE\n</style>\n<![endif]-->\n', '<!--[if IE 7]>\n/* Replace "7" with others spesific IE */\n<link href="spesific-IE-7.css" rel="stylesheet" type="text/css" />\n<![endif]-->\n', "IE 7"));
edButtons.push(new edButton("ed_gr", "IE8-IE6", '<!--[if lte IE 8]>\n<style type="text/css">\nCSS for IE-8, IE-7 and down\n</style>\n<![endif]-->\n', '<!--[if lte IE 8]>\n /* css for IE-8, IE 7 and down */\n<link href="IE-8-and-down.css" rel="stylesheet" type="text/css" />\n<![endif]-->', "IE8-IE6"));
edButtons.push(new edButton("ed_gr", "IE6-IE8", '<!--[if lte IE 6]>\n<style type="text/css">\ncss for IE-6, IE 7 and up\n</style>\n<![endif]-->\n', '<!--[if lte IE 6]>\n /* css for IE-6, IE 7 and up */\n<link href="IE-6-and-up.css" rel="stylesheet" type="text/css" />\n<![endif]-->', "IE6-IE8"));
edButtons.push(new edButton("ed_gr", "js-IE", '<!--[if IE]>\n<script type="text/javascript">\n javascript here! (All IE)\n<\/script>\n<![endif]-->\n', '<!--[if IE]>\n/* javascript spesific in IE */\n<script src="javascript-IE.js" type="text/javascript"><\/script>\n<![endif]-->\n', "CSS-IE"));
edButtons.push(new edButton("ed_gr", "HOT", '<a href="http://gubhugreyot.blogspot.com/" target="_blank" title="Best blogger tutorials">gubhugreyot</a>\n', '<a href="http://bestbloggerhack.blogspot.com/" target="_blank" title="Best blogger tricks and hacks">Best Blogger Hacks</a>\n', "HOT"));

function edLink(f, e, d) {
    this.display = f;
    this.URL = e;
    if (!d) {
        d = 0
    }
    this.newWin = d
}
edLinks[edLinks.length] = new edLink("gubhugreyot.blogspot.com", "http://gubhugreyot.blogspot.com/");

function edShowButton(g, e, f) {
    if (e.access) {
        var h = ' accesskey = "' + e.access + '"'
    } else {
        var h = ""
    }
    switch (e.id) {
    case "ed_img":
        document.write('<input type="button" id="' + e.id + "_" + g + '" ' + h + ' class="ed_button" onclick="edInsertImage(\'' + g + '\');" value="' + e.display + '" />');
        break;
    case "ed_link":
        document.write('<input type="button" id="' + e.id + "_" + g + '" ' + h + ' class="ed_button" onclick="edInsertLink(\'' + g + "', " + f + ');" value="' + e.display + '" />');
        break;
    case "ed_ext_link":
    case "ed_ext_link":
        document.write('<input type="button" id="' + e.id + "_" + g + '" ' + h + ' class="ed_button" onclick="edInsertExtLink(\'' + g + "', " + f + ');" value="' + e.display + '" />');
        break;
    case "ed_footnote":
        document.write('<input type="button" id="' + e.id + "_" + g + '" ' + h + ' class="ed_button" onclick="edInsertFootnote(\'' + g + '\');" value="' + e.display + '" />');
        break;
    case "ed_via":
        document.write('<input type="button" id="' + e.id + "_" + g + '" ' + h + ' class="ed_button" onclick="edInsertVia(\'' + g + '\');" value="' + e.display + '" />');
        break;
    default:
        document.write('<input type="button" id="' + e.id + "_" + g + '" ' + h + ' class="ed_button" onclick="edInsertTag(\'' + g + "', " + f + ');" value="' + e.display + '"  />');
        break
    }
}
function edShowLinks() {
    var b = '<select onchange="edQuickLink(this.options[this.selectedIndex].value, this);"><option value="-1" selected>(Quick Links)</option>';
    for (i = 0; i < edLinks.length; i++) {
        b += '<option value="' + i + '">' + edLinks[i].display + "</option>"
    }
    b += "</select>";
    document.write(b)
}
function edAddTag(c, d) {
    if (edButtons[d].tagEnd != "") {
        edOpenTags[c][edOpenTags[c].length] = d;
        document.getElementById(edButtons[d].id + "_" + c).value = "/" + document.getElementById(edButtons[d].id + "_" + c).value
    }
}
function edRemoveTag(c, d) {
    for (i = 0; i < edOpenTags[c].length; i++) {
        if (edOpenTags[c][i] == d) {
            edOpenTags[c].splice(i, 1);
            document.getElementById(edButtons[d].id + "_" + c).value = document.getElementById(edButtons[d].id + "_" + c).value.replace("/", "")
        }
    }
}
function edCheckOpenTags(f, d) {
    var e = 0;
    for (i = 0; i < edOpenTags[f].length; i++) {
        if (edOpenTags[f][i] == d) {
            e++
        }
    }
    if (e > 0) {
        return true
    } else {
        return false
    }
}
function edCloseAllTags(c) {
    var d = edOpenTags[c].length;
    for (o = 0; o < d; o++) {
        edInsertTag(c, edOpenTags[c][edOpenTags[c].length - 1])
    }
}
function edQuickLink(h, g) {
    if (h > -1) {
        var e = "";
        if (edLinks[h].newWin == 1) {
            e = ' target="_blank"'
        }
        var f = '<a href="' + edLinks[h].URL + '"' + e + ">" + edLinks[h].display + "</a>";
        g.selectedIndex = 0;
        edInsertContent(edCanvas, f)
    } else {
        g.selectedIndex = 0
    }
}
function edSpell(h) {
    myField = document.getElementById(h);
    var j = "";
    if (document.selection) {
        myField.focus();
        var k = document.selection.createRange();
        if (k.text.length > 0) {
            j = k.text
        }
    } else {
        if (myField.selectionStart || myField.selectionStart == "0") {
            var f = myField.selectionStart;
            var g = myField.selectionEnd;
            if (f != g) {
                j = myField.value.substring(f, g)
            }
        }
    }
    if (j == "") {
        j = prompt('Enter the name of a woman and then click "OK":', "")
    }
    if (j != "") {
        window.open(tipuanUrl)
    }
}
function edToolbar(b) {
    document.write('<span id="ed_toolbar_' + b + '">');
    for (i = 0; i < extendedStart; i++) {
        edShowButton(b, edButtons[i], i)
    }
    if (edShowExtraCookie()) {
        document.write('<input type="button" id="ed_spell_' + b + '" class="ed_button" onclick="edSpell(\'' + b + '\');" value="BEST" />')
    } else {
        document.write('<input type="button" id="ed_spell_' + b + '" class="ed_button" onclick="edSpell(\'' + b + '\');" value="BEST" />')
    }
    for (i = extendedStart; i < edButtons.length; i++) {
        edShowButton(b, edButtons[i], i)
    }
    document.write("</span>");
    edOpenTags[b] = new Array()
}

function edInsertTag(k, m) {
    myField = document.getElementById(k);
    if (document.selection) {
        myField.focus();
        sel = document.selection.createRange();
        if (sel.text.length > 0) {
            sel.text = edButtons[m].tagStart + sel.text + edButtons[m].tagEnd
        } else {
            if (!edCheckOpenTags(k, m) || edButtons[m].tagEnd == "") {
                sel.text = edButtons[m].tagStart;
                edAddTag(k, m)
            } else {
                sel.text = edButtons[m].tagEnd;
                edRemoveTag(k, m)
            }
        }
        myField.focus()
    } else {
        if (myField.selectionStart || myField.selectionStart == "0") {
            var g = myField.selectionStart;
            var h = myField.selectionEnd;
            var j = h;
            var l = myField.scrollTop;
            if (g != h) {
                myField.value = myField.value.substring(0, g) + edButtons[m].tagStart + myField.value.substring(g, h) + edButtons[m].tagEnd + myField.value.substring(h, myField.value.length);
                j += edButtons[m].tagStart.length + edButtons[m].tagEnd.length
            } else {
                if (!edCheckOpenTags(k, m) || edButtons[m].tagEnd == "") {
                    myField.value = myField.value.substring(0, g) + edButtons[m].tagStart + myField.value.substring(h, myField.value.length);
                    edAddTag(k, m);
                    j = g + edButtons[m].tagStart.length
                } else {
                    myField.value = myField.value.substring(0, g) + edButtons[m].tagEnd + myField.value.substring(h, myField.value.length);
                    edRemoveTag(k, m);
                    j = g + edButtons[m].tagEnd.length
                }
            }
            myField.focus();
            myField.selectionStart = j;
            myField.selectionEnd = j;
            myField.scrollTop = l
        } else {
            if (!edCheckOpenTags(k, m) || edButtons[m].tagEnd == "") {
                myField.value += edButtons[m].tagStart;
                edAddTag(k, m)
            } else {
                myField.value += edButtons[m].tagEnd;
                edRemoveTag(k, m)
            }
            myField.focus()
        }
    }
}
function edInsertContent(h, k) {
    myField = document.getElementById(h);
    if (document.selection) {
        myField.focus();
        sel = document.selection.createRange();
        sel.text = k;
        myField.focus()
    } else {
        if (myField.selectionStart || myField.selectionStart == "0") {
            var f = myField.selectionStart;
            var g = myField.selectionEnd;
            var j = myField.scrollTop;
            myField.value = myField.value.substring(0, f) + k + myField.value.substring(g, myField.value.length);
            myField.focus();
            myField.selectionStart = f + k.length;
            myField.selectionEnd = f + k.length;
            myField.scrollTop = j
        } else {
            myField.value += k;
            myField.focus()
        }
    }
}
function edInsertLink(g, h, e) {
    myField = document.getElementById(g);
    if (!e) {
        e = "http://"
    }
    if (!edCheckOpenTags(g, h)) {
        var f = prompt("Enter the URL", e);
        if (f) {
            edButtons[h].tagStart = '<a href="' + f + '">';
            edInsertTag(g, h)
        }
    } else {
        edInsertTag(g, h)
    }
}
function edInsertExtLink(g, h, e) {
    myField = document.getElementById(g);
    if (!e) {
        e = "http://"
    }
    if (!edCheckOpenTags(g, h)) {
        var f = prompt("Enter the URL", e);
        if (f) {
            edButtons[h].tagStart = '<a href="' + f + '" rel="external">';
            edInsertTag(g, h)
        }
    } else {
        edInsertTag(g, h)
    }
}
function edInsertImage(c) {
    myField = document.getElementById(c);
    var d = prompt("Enter the URL of the image", "http://");
    if (d) {
        d = '<img src="' + d + '" alt="' + prompt("Enter a description of the image", "") + '" />';
        edInsertContent(c, d)
    }
}
function edInsertFootnote(s) {
    myField = document.getElementById(s);
    var l = prompt("Enter the footnote:", "");
    if (!l || l == "") {
        return false
    }
    var t = new Date;
    var n = "fn" + t.getTime();
    var k = myField.value.indexOf('<ol class="footnotes">');
    if (k != -1) {
        var q = myField.value.substring(0, k);
        var r = myField.value.substring(k, myField.value.length);
        var p = countInstances(r, '<li id="') + 1
    } else {
        var p = 1
    }
    var p = '<sup><a href="#' + n + 'n" id="' + n + '" class="footnote">' + p + "</a></sup>";
    edInsertContent(s, p);
    if (k != -1) {
        q = myField.value.substring(0, k + p.length);
        r = myField.value.substring(k + p.length, myField.value.length)
    } else {
        var q = myField.value;
        var r = '\n\n<ol class="footnotes">\n</ol>\n'
    }
    var m = '<li id="' + n + 'n">' + l + ' [<a href="#' + n + '">back</a>]</li>\n</ol>';
    myField.value = q + r.replace("</ol>", m)
}
function countInstances(e, f) {
    var d = e.split(f);
    return d.length - 1
}
function edInsertVia(c) {
    myField = document.getElementById(c);
    var d = prompt("Enter the URL of the source link", "http://");
    if (d) {
        d = '(Thanks <a href="' + d + '" rel="external">' + prompt("Enter the name of the source", "") + "</a>)";
        edInsertContent(c, d)
    }
}
function edSetCookie(f, j, g, h, k) {
    document.cookie = f + "=" + escape(j) + ((g) ? "; expires=" + g.toGMTString() : "") + ((h) ? "; path=" + h : "") + ((k) ? "; domain=" + k : "")
}
function edShowExtraCookie() {
    var f = document.cookie.split(";");
    for (var d = 0; d < f.length; d++) {
        var e = f[d];
        while (e.charAt(0) == " ") {
            e = e.substring(1, e.length)
        }
        if (e.indexOf("js_quicktags_extra") == 0) {
            if (e.substring(19, e.length) == "show") {
                return true
            } else {
                return false
            }
        }
    }
    return false
};
//-->
</script>

</head>

<body>


<h1>Tags Creator - Quick Tags</h1>

<form>
	<fieldset>
		<legend><h2>Example-1</h2></legend>
<div style="width:740px;background:#555;padding:2px 4px 4px;border-radius:6px;margin:10px auto 10px;">
		<script type="text/javascript">edToolbar('code');</script>
</div>
		<textarea id="code" rows="7" cols="90" style="display:block;margin:0 auto;"></textarea>
	</fieldset>
	<fieldset>
		<legend><h2>Example-2</h2></legend>
<div style="width:740px;background:#555;padding:2px 4px 4px;border-radius:6px;margin:10px auto 10px;">
		<script type="text/javascript">grTcW('kode');</script>
</div>
		<textarea id="kode" rows="7" cols="90" style="display:block;margin:0 auto;"></textarea>
	</fieldset>
</form>

</body>